{% extends 'index.html' %}

{% load i18n staticfiles helpers %}

{% block 'scripts' %}
<script src="{% static 'js/candidates.js' %}"></script>
{% endblock %}

{% block 'content' %}

<div class="row mbs">
    <div class="col-xs-12 col-md-4 col-lg-3 col-md-offset-8 col-lg-offset-0 switch">
        <div class="btn-group btn-group-justified">
            <a href="{% url 'candidates' %}{% get_params request 'evaluate' %}" class="btn btn-default {% if not 'evaluate' in request.GET %}active{% endif %}">{% trans 'opinion_fsfe_chopen' %}</a>
            {% if 'statistics' in request.COOKIES and request.COOKIES.statistics != '{}' %}
                <a
                    href="{% url 'candidates' %}{% get_params request 'evaluate' add='evaluate=1' %}"
                 class="btn btn-default {% if 'evaluate' in request.GET %}active{% endif %}"
                >{% trans 'own_opinion' %}</a>
            {% else %}
                <a
                 href="#"
                 class="btn btn-default add-popover"
                 data-toggle="popover"
                 data-placement="bottom"
                 title="{% trans 'add_own_opinion' %}"
                 data-content="<a href=&quot;{% url 'compare' %}&quot;>{% trans 'add_own_opinion_here' %}</a>"
                 >{% trans 'own_opinion' %}</a>
            {% endif %}
        </div>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-offset-1 col-lg-8">
        {% include 'core/candidates/filter.html' %}
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        {% include 'core/candidates/list.html' %}
    </div>
</div>
{% endblock %}
